package com.me.mygdxgame;

import screens.EndGameScreen;
import screens.GameMainScreen;
import screens.MenuScreen;
import screens.OptionScreen;
import screens.SplashScreen;

import com.badlogic.gdx.Game;

public class Gamedoan extends Game {
	SplashScreen splashScreen;
	MenuScreen menuScreen;
	GameMainScreen gameMainScreen;
	EndGameScreen endGameScreen;
	OptionScreen optionScreen;
	static int intscreen=0;
	boolean isNext = true;
	@Override 
	public void create ()
	{
		splashScreen = new SplashScreen(this);
		menuScreen = new MenuScreen(this);
		gameMainScreen = new GameMainScreen(this);
		endGameScreen = new EndGameScreen(this);
		optionScreen = new OptionScreen(this);
		setScreen(splashScreen);
		//setScreen(new GameMainScreen());
	}
	public SplashScreen getSplashSceen(){
		return splashScreen;
	}
	public MenuScreen getMenuScreen(){
		return menuScreen;
	}
	public GameMainScreen getGameMainScreen(){
		return gameMainScreen;
	}
	public EndGameScreen getEndGameScreen(){
		return endGameScreen;
	}
	public OptionScreen getOptionScreen(){
		return optionScreen;
	}
	
	public void setNextScreen(){
		if(isNext) intscreen++;
		
			switch(intscreen){
			case 0:setScreen(splashScreen);break;
			case 1:setScreen(menuScreen);break;
			case 2:setScreen(gameMainScreen);isNext=false;break;
			case 3: setScreen(endGameScreen);break;
			
			}
	}
	public void setIsNextScreen(boolean isNext){
		this.isNext=isNext;
	}
}
